﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SQLite;

namespace Teriri.File.Server.Entity
{
    /// <summary>
    /// 文件解压日志
    /// </summary>
    public class DecompressingFileLogEntity
    {
        [PrimaryKey]
        public string Id { get; set; }

        /// <summary>
        /// 目标源地址
        /// </summary>
        public string FilePath { set; get; }

        /// <summary>
        /// 目标源地址
        /// </summary>
        public string FileName { set; get; }

        /// <summary>
        /// 解压后地址
        /// </summary>
        public string DecompressingPath { set; get; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime? StartTime { set; get; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime? EndTime { set; get; }

        /// <summary>
        /// 目标源大小（MB）
        /// </summary>
        public double? SourceSize { set; get; }

        /// <summary>
        /// 解压后大小
        /// </summary>
        public double? DecompressingSize { set; get; }

        /// <summary>
        /// 执行是否成功
        /// </summary>
        public bool Successed { set; get; }

        /// <summary>
        /// 异常信息
        /// </summary>
        public string ExceptionMessage { set; get; }

        /// <summary>
        /// 异常堆栈
        /// </summary>
        public string ExceptionStackTrace { set; get; }

        /// <summary>
        /// 用时（秒）
        /// </summary>
        public string UsedSeconds { set; get; }

        /// <summary>
        /// 压缩比例
        /// </summary>
        public double? DecompressingRatio { set; get; }

        public string EndTimeStr { set; get; }

        public string StartTimeStr { set; get; }
    }
}